package com.hotel.project.demo.api;

import com.hotel.project.common.api.IErrorCode;

public enum HotelResultCode implements IErrorCode {
    SUCCESS(10000, "操作成功"),

    FAILED(10001, "操作失败"),

    VALIDATE_FAILED(10404, "参数检验失败"),

    UNAUTHORIZED(10401, "暂未登录或token已经过期"),

    FORBIDDEN(10403, "没有相关权限");

    private long code;
    private String message;

    private HotelResultCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
